//引入vue-router
import { createRouter, createWebHistory } from 'vue-router';

import Login from '@/views/me/login.vue';
import Dome1 from '@/views/course/demo1.vue';
import Dome2 from '@/views/course/demo2.vue';
import layout from '@/views/course/layout.vue';
import demo7 from '@/views/course/demo7.vue';
import demo4 from '@/views/course/demo4.vue';







//配置路由规则
const routes = [
    {
        path:'/',
        
    },
   
    {
        path:'/dome1',
        component:Dome1
    },
      {
        path:'/dome2',
        component:Dome2
    },
     {
        path:'/login',
        component:Login
    },
    // {
    //     path:'/layout',
    //     component:layout
        
    // },
    {
        path:'/demo7',
        component:demo7
    },
     {
        path:'/demo4',
        component:demo4
    }

]
//创建路由
const router = createRouter({
    history:createWebHistory(), 
          routes

}); 
//导出路由
export default router 
